#include <cstdio>
using namespace std;

bool CalculateNumber(int, int, int);

int main()
{
    int num;
    scanf(" %d", &num);

    for (int i = 0; i < num; i++) {
        int a, b, c;
        scanf(" %d %d %d", &a, &b, &c);
        printf("Case #%d: ", i + 1);
        if (CalculateNumber(a, b, c)) 
            printf("true\n");
        else
            printf("false\n");
    }

    return 0;
}

bool CalculateNumber(int a, int b, int c)
{
    int sum = a + b;
    if (a > 0 && b > 0 && sum < 0)
        return true;
    if (a < 0 && b < 0 && sum > 0)
        return false;
    return (sum > c);
}